package com.bdcom.autotest.telnet.model;

public class DevIPObj extends   TelnetCMDObj{
    private String ipAdd;
    private String mask;
    private String wantPingIP;

    public String getWantPingIP() {
        return wantPingIP;
    }

    public void setWantPingIP(String wantPingIP) {
        this.wantPingIP = wantPingIP;
    }

    public String getIpAdd() {
        return ipAdd;
    }

    public void setIpAdd(String ipAdd) {
        this.ipAdd = ipAdd;
    }

    public String getMask() {
        return mask;
    }

    public void setMask(String mask) {
        this.mask = mask;
    }
    public String buildCMD(){
        //ip add 192.168.0.1 255.255.255.0
        StringBuilder builder=new StringBuilder();
        builder.append("ip add ").append(getIpAdd()).append(" ").append(getMask());
        return builder.toString();
    }
}
